package jgrit.control;

/**
 * Thrown when {@link ExportService} has an error while exporting
 * an image. Always has a <tt>cause</tt> accessible via {@link #getCause()}.
 * 
 * @author David Foster
 */
public abstract class ExportException extends Exception {
	private static final long serialVersionUID = 1L;
	
	private String underlyingToolName;

	public ExportException(String underlyingToolName, Throwable cause) {
		super(cause);
		this.underlyingToolName = underlyingToolName;
	}
	
	public String getUnderlyingToolName() {
		return this.underlyingToolName;
	}
}
